//
//  BBBViewController.m
//  豆瓣
//
//  Created by dlios on 15-4-30.
//  Copyright (c) 2015年 lanou3g.com 孙家庆. All rights reserved.
//

#import "BBBViewController.h"
#import "LView.h"

@interface BBBViewController ()

@end

@implementation BBBViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.title = @"注册";
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"注册" style:UIBarButtonItemStyleDone target:self action:@selector(rightA:)];
    [self zhuce];
    
}
-(void)zhuce
{
    LView *l1 = [[LView alloc] initWithFrame:CGRectMake(20, 70, self.view.frame.size.width - 30, 70)];
    l1.label.text = @"用户名";
    l1.textField.placeholder = @"请输入用户名";
    [self.view addSubview:l1];
    [l1 release];
    
    LView *l2 = [[LView alloc] initWithFrame:CGRectMake(20, 130, self.view.frame.size.width - 30, 70)];
    l2.label.text = @"密码";
    l2.textField.placeholder = @"请输入密码";
    [l2.textField setKeyboardType:UIKeyboardTypeNumberPad];
    //    l2.myTextField.enabled = YES;
    l2.textField.clearsOnBeginEditing = YES;
    l2.textField.secureTextEntry = YES;
    [l2.textField setClearButtonMode:UITextFieldViewModeAlways];
    l2.textField.tag = 13000;
    [self.view addSubview:l2];
    [l2 release];
    LView *l3 = [[LView alloc] initWithFrame:CGRectMake(20, 190, self.view.frame.size.width - 30, 70)];
    l3.label.text = @"确定密码";
    l3.textField.placeholder = @"再次输入密码";
    l3.textField.tag = 14000;
    [l3.textField setKeyboardType:UIKeyboardTypeNumberPad];
    //    l3.myTextField.enabled = YES;
    l3.textField.clearsOnBeginEditing = YES;
    l3.textField.secureTextEntry = YES;
    [l3.textField setClearButtonMode:UITextFieldViewModeAlways];
    [self.view addSubview:l3];
    [l3 release];
    
    LView *l4 = [[LView alloc] initWithFrame:CGRectMake(20, 250, self.view.frame.size.width - 30, 70)];
    l4.label.text  =@"手机号";
    l4.textField.placeholder = @"请输入联系方式";
    [l4.textField setKeyboardType:UIKeyboardTypeNumberPad];
    //    l4.myTextField.enabled = YES;
    l4.textField.clearsOnBeginEditing = YES;
    l4.textField.secureTextEntry = YES;
    [l4.textField setClearButtonMode:UITextFieldViewModeAlways];
    [self.view addSubview:l4];
    [l4 release];
    
    LView *l5 = [[LView alloc] initWithFrame:CGRectMake(20, 310, self.view.frame.size.width - 30, 70)];
    l5.label.text  =@"邮箱";
    l5.textField.placeholder = @"请输入邮箱";
    [self.view addSubview:l5];
    [l5 release];
    
    
    
}
- (void)rightA:(UIBarButtonItem *)right
{
    
    
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
